package com.thermofisher.dsc.amanda.model.dto.promotion;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.text.DecimalFormat;


@Getter
@Setter
public class PromotionSKUDto {

    private String skuNO;

    private String skuDesc;

    private String quantity;

    @JsonIgnore
    private Float price;

    private String priceStr;

    private Combine comment;

    public String getPriceStr() {
        if (price != null){
            DecimalFormat decimalFormat = new DecimalFormat("###,###.00");
            return decimalFormat.format(price);
        }
        return null;
    }
}
